package com.example.librarymanagementsystem.severice;

import com.example.librarymanagementsystem.mapper.UserInfoMapper;
import com.example.librarymanagementsystem.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper mapper;

    public UserInfo getUserinfo(String name){
       return mapper.getUserInfoByName(name);
    }
}
